Streams html Class
Inline editor for HTML content
Constructor
Streams html
(
-
[options]
Parameters:
-
[options]
Object optionalthis object contains function parameters
-
publisherId
StringThe publisher's user id.
-
field
StringThe name of the stream field used to save the html.
-
[streamName]
String optionalIf empty, and "creatable" is true, then this can be used to add new related streams.
-
[placeholder]
String optionalThe placeholder HTML
-
[editor="auto"]
String optionalCan be "ckeditor", "froala", "basic" or "auto".
-
[editable]
Boolean optionalSet to false to avoid showing even authorized users an interface to replace the contents
-
[ckeditor]
Object optionalThe config, if any, to pass to ckeditor
-
[froala]
Object optionalThe config, if any, to pass to froala
-
[preprocess]
Function optionalOptional function which takes [callback, tool] and calls callback(objectToExtendAnyStreamFields)
-
[beforeSave]
Q.Event optionalThis event triggers before save
-
[onFroalaEditor]
Q.Event optionalThis event triggers when the froala editor is loaded
-